<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>position</title>
    <style>
      div {
        background: red;
        width: 200px;
        height: 100px;
      }
      .p2 {
        position: relative;
        left: 10px;
        top: -10px;
        background: blue;
      }
      .p3 {
        position: absolute;
        left: 300px;
        top: 100px;
        background: green;
      }
      .p4 {
        position: fixed;
        left: 0;
        bottom: 10px;
      }
    </style>
  </head>
  <body>
    <div class="p1">
      positon: static
    </div>
    <div class="p2">
      position: relative
    </div>
    <div class="p3">
      position: absolute
      <div class="p3-3" style="position: absolute;width:50px;height:50px;background:yellow;left:-10px;top:10px;"></div>
    </div>
    <div class="p4">
      position: fixed
    </div>
  </body>
</html>
